package cn.rxls.community.dto.bill;

import cn.rxls.community.entity.Bill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 账单创建
 */
@Data
public class AddBillDTO {
    /**
     * 用途描述
     */
    @NotBlank(message = "账单标题不为空")
    private String billMsg;

    /**
     * 账单金额
     */
    @NotNull(message = "账单金额不为空")
    @Min(value = 0,message = "账单金额不为负数")
    private Long billPrice;
    /**
     * 账单类型
     */
    @NotBlank(message = "账单类型不为空")
    private String billCategory;

    /**
     * 账单内容
     */
    @NotBlank(message = "账单内容不为空")
    private String billSpecifics;
}
